/*
 * @Description: 这个是koa的入口时间
 * @Author: zhangaho
 * @Date: 2019-10-11 09:15:08
 * @LastEditTime: 2019-10-11 16:32:16
 * @LastEditors: Please set LastEditors
 */
const Koa = require('koa');
const app = new Koa();
const parser=require('koa-bodyparser');
const catchError=require('./middlewares/exception');

app.use(catchError)
app.use(parser())
//这个是核心方法
const InitManager=require('./core/init')
//调用initCore得到路由
InitManager.initCore(app);

app.listen(3000,()=>{
    console.log("this is a Koatest projection")
})

